#ifndef __DISPLAY_H
#define __DISPLAY_H

#include <sys/time.h>
#include <stdlib.h>

#define MAX_OUTPUT 128   /* output result string length */

#define FREE_MEMORY(x,str) printf("Free(%x) in %s\n",x,str)

typedef struct flow_s {
  struct timeval timestamp;
  u_int32_t saddr;
  u_int32_t daddr;
  u_int8_t protocol;
  u_int16_t sport;
  u_int16_t dport;
} flow_t;

typedef struct display {
  flow_t flow;
  u_int8_t type1;
  u_int8_t type2;
  char output[MAX_OUTPUT];
} display_t;


#endif
